package com.ruoyi.dormitory.mapper;

import java.util.List;
import com.ruoyi.dormitory.domain.TbBuilding;

/**
 * 类别Mapper接口
 * 
 * @author hongyi
 * @date 2023-12-28
 */
public interface TbBuildingMapper 
{
    /**
     * 查询类别
     * 
     * @param id 类别主键
     * @return 类别
     */
    public TbBuilding selectTbBuildingById(String id);

    /**
     * 查询类别列表
     * 
     * @param tbBuilding 类别
     * @return 类别集合
     */
    public List<TbBuilding> selectTbBuildingList(TbBuilding tbBuilding);

    /**
     * 新增类别
     * 
     * @param tbBuilding 类别
     * @return 结果
     */
    public int insertTbBuilding(TbBuilding tbBuilding);

    /**
     * 修改类别
     * 
     * @param tbBuilding 类别
     * @return 结果
     */
    public int updateTbBuilding(TbBuilding tbBuilding);

    /**
     * 删除类别
     * 
     * @param id 类别主键
     * @return 结果
     */
    public int deleteTbBuildingById(String id);

    /**
     * 批量删除类别
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbBuildingByIds(String[] ids);
}
